<link rel="stylesheet" href="__STATIC__/css/pccomment.css"> 
<div class="WapCommentBox">
	<ul class="PostCommentBox1">
		<ol><i class="fa fa-edit"></i><textarea placeholder="发布您的精彩评论"></textarea></ol>
		<li><button type="butter" onclick="post_commentPc()">发表</button></li>		
	</ul>
	<div class="head">
		<div class="tag">全部评论</div>
	</div>
	<div class="ListComment">
		<?php if(is_array($listdb) || $listdb instanceof \think\Collection || $listdb instanceof \think\Paginator): $i = 0; $__LIST__ = $listdb;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$rs): $mod = ($i % 2 );++$i;?>
		<ul class="lists" id="comment_cnt_<?php echo $rs['id']; ?>">
			<ol class="icon"><a href="<?php echo get_url('user',$rs['uid']); ?>" target="_blank"><img src="<?php echo $rs['icon']; ?>" onerror="this.src='__STATIC__/images/nobody.gif'"/></a></ol>
			<li class="infos">
				<dl>
					<dt><a href="<?php echo murl('member/msg/add',['uid'=>$rs['uid']]);?>" class="_pop"><?php echo $rs['username']; ?></a> <span><?php echo $rs['time']; ?></span></dt>
					<dd>
						<em onclick="dingcomment(<?php echo $rs['id']; ?>)"><i class="si si-like"></i> <a class="agree<?php echo $rs['id']; ?>"><?php echo $rs['agree']; ?></a></em> 
						<span onclick="post_comment(<?php echo $rs['id']; ?>)"><i class="fa fa-commenting-o"></i> 回复</span>
						<?php if(fun('Admin@sort',$info['fid'])||fun('Admin@status_power')): ?><span onclick="yz_comment(<?php echo $rs['id']; ?>,$(this))"  class="comment_if_yz <?php echo $rs.status==0?'notyz':''; ?>"><a href="javascript:"><i class=" fa fa-ban"></i></a></span><?php endif; ?>
						<?php if($rs['uid']==login_user('uid')||fun('Admin@sort',$info['fid'])): ?><span onclick="del_comment(<?php echo $rs['id']; ?>)"><a href="javascript:"><i class="fa fa-close"></i> 删除</a></span><?php endif; ?>
					</dd>
				</dl>
				<div class="comment"><?php echo $rs['content']; ?></div>				
				<div class="repalyinfs repalyinfs<?php echo $rs['id']; ?>">
					<?php if(is_array($rs['children']) || $rs['children'] instanceof \think\Collection || $rs['children'] instanceof \think\Paginator): $i = 0; $__LIST__ = $rs['children'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
						<div id="comment_cnt_<?php echo $vo['id']; ?>">
						<a href="<?php echo get_url('user',$vo['uid']); ?>" target="_blank"><?php echo (isset($vo['username']) && ($vo['username'] !== '')?$vo['username']:'游客'); ?>：</a>
						<?php echo $vo['content']; ?>
						<?php if($vo['uid']==login_user('uid')||fun('Admin@sort',$info['fid'])): ?><span onclick="del_comment(<?php echo $vo['id']; ?>)" style="float:right;"><a href="javascript:"><i class="fa fa-close"></i> 删除</a></span><?php endif; ?>
						<?php if(fun('Admin@sort',$info['fid'])||fun('Admin@status_power')): ?><span onclick="yz_comment(<?php echo $vo['id']; ?>,$(this))"  style="float:right;" class="comment_if_yz <?php echo $vo.status==0?'notyz':''; ?>"><a href="javascript:"><i class=" fa fa-ban"></i></a></span><?php endif; ?>
					</div>
					<?php endforeach; endif; else: echo "" ;endif; ?>
				</div>
			</li>
		</ul>
		<?php endforeach; endif; else: echo "" ;endif; ?>
	</div>
	<div class="ShowMoreComment"><button type="butter" onclick="ShowMoreComment()">更多评论 <i class="fa fa-angle-double-down"></i></button></div>
</div>

<script type="text/javascript" src="__STATIC__/libs/tncode/tn_code.js?waf"></script>
<link rel="stylesheet" type="text/css" href="__STATIC__/libs/tncode/tn_code.css?df"/>

<script type="text/javascript">
var comment_post_url,comment_base_url;
	comment_post_url = comment_base_url = "<?php echo fun('label@comment_api','posturl',$aid,$sysid,$cfg_array); ?>";
var repalyid=0;
var commentpage=1;

var comment_delete_url = "<?php echo purl('comment/api/delete');?>";

var needTncode = <?php echo in_array(login_user('groupid'), config('webdb.group_reply_need_tncode'))?'true':'false'; ?>;	//是否需要行为验证码
var cache_need_tncode = needTncode;
		
var comment_page_url = '<?php echo fun("label@comment_api","pageurl",$aid,$sysid,$cfg_array); ?>';
var comment_rows = parseInt("<?php echo $cfg_array['rows']; ?>");
var comment_yz_url = "<?php echo purl('comment/api/yz'); ?>";
</script>
<script type="text/javascript" src="__STATIC__/js/comment/pc.js"></script>